package com.zd.mapper;

import com.zzg.entity.Departurelist;
import com.zzg.entity.Otherdelivery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description: OtherdeliveryMapper
 * @Author:pioneer
 * @Date: 2021-07-23
 * @Version:v1.0
 */
@Mapper
public interface OtherdeliveryMapper {
    /**
     * 查询外包派送列表相关的所有信息
     * @return 外包派送集合
     */
    public List<Otherdelivery> selectOtherdeliverylist();

    /**
     * 分页查询外包派送列表相关的所有信息
     * @param page 页码
     * @param entry 条目数
     * @return 外包派送集合
     */
    public List<Otherdelivery> pagingqueryOtherdeliverylist(@Param("page") int page, @Param("entry") int entry);

    /**
     * 通过多条件查询外包派送列表信息
     * @param otherdelivery 运外包派送对象
     * @return 外包派送集合
     */
    public List<Otherdelivery> getOtherdeliverylistwhere(@Param("otherdelivery") Otherdelivery otherdelivery);

    /**
     * 通过多条件查询外包派送列表信息并分页
     * @param otherdelivery 运外包派送对象
     * @param page 页码
     * @param entry 条目数
     * @return 外包派送集合
     */
    public List<Otherdelivery> conditionqueryOtherdeliverylist(@Param("otherdelivery") Otherdelivery otherdelivery, @Param("page") int page, @Param("entry") int entry);

    /**
     * 通过派送单号查询外包派送信息
     * @param deliverynumber 派送单号
     * @return 外包派送对象
     */
    public Otherdelivery getOtherdeliveryByid(@Param("deliverynumber") String deliverynumber);
}
